package fr.pascal;

import java.util.Comparator;

public class KangourouAge implements Comparator<Kangourou> {

	public int compare(Kangourou k1, Kangourou k2) {

		if (k1.getAge() < k2.getAge()) {
			return -1;
		} else if (k1.getAge() == k2.getAge()) {
			return 0;
		} else {
			return 1;
		}
	}
}
